home *** CD-ROM | disk | FTP | other *** search
- head 1.3;
- access ;
- symbols ;
- locks ; strict;
- comment @ * @;
-
-
- 1.3
- date 88.07.28.17.29.43; author ouster; state Exp;
- branches ;
- next 1.2;
-
- 1.2
- date 88.07.25.10.40.29; author ouster; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 88.06.26.15.45.56; author ouster; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
- 1.3
- log
- @Lint.
- @
- text
- @/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
- */
-
- #if defined(LIBC_SCCS) && !defined(lint)
- static char sccsid[] = "@@(#)closedir.c 5.2 (Berkeley) 3/9/86";
- #endif LIBC_SCCS and not lint
-
- #include <stdlib.h>
- #include <sys/param.h>
- #include <sys/dir.h>
-
- /*
- * close a directory.
- */
- void
- closedir(dirp)
- register DIR *dirp;
- {
- close(dirp->dd_fd);
- dirp->dd_fd = -1;
- dirp->dd_loc = 0;
- free((char *) dirp);
- }
- @
-
-
- 1.2
- log
- @Lint cleanup.
- @
- text
- @d25 1
- a25 1
- free(dirp);
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d11 1
- @
-